package com.zbkj.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zbkj.common.model.Integral.IntegralParameter;

import com.zbkj.service.dao.IntegralParameterDao;

import com.zbkj.service.service.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;


/**
*  UserExtractServiceImpl 接口实现
*  +----------------------------------------------------------------------
 *  | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 *  +----------------------------------------------------------------------
 *  | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
 *  +----------------------------------------------------------------------
 *  | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 *  +----------------------------------------------------------------------
 *  | Author: CRMEB Team <admin@crmeb.com>
 *  +----------------------------------------------------------------------
*/
@Service
public class IntegralParameterServiceImpl extends ServiceImpl<IntegralParameterDao, IntegralParameter> implements IntegralParameterService {

    @Resource
    private IntegralParameterDao dao;

    @Autowired
    private IntegralParameterService integralParameterService;

    @Autowired
    private UserService userService;
    @Override
    public IntegralParameter getIntegralParameter(Integer id) {
        QueryWrapper<IntegralParameter> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("id",id);
        return dao.selectOne(queryWrapper);
    }
}

